/**
 * Copyright 2008-2009 HAN.BIFANG
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
package han.bashe.common.entity;

public class BifangEntityConstants {
	
	/**
	 * SOA Tree type:Domain Node
	 */
	public static final String TREE_DOMAIN = "1";
	
	/**
	 * SOA Tree type:App Node
	 */
	public static final String TREE_APP = "2";
	
	
	
	
	
	
	/**
	 * SOA Tree type:Domain Node Sub Type
	 */
	public static final String TREE_DOMAIN_LOCAL = "0";
	public static final String TREE_DOMAIN_REMOTE = "1";
	
	public static final String TREE_DOMAIN_BUS = "2";
	public static final String TREE_DOMAIN_CATALOG = "3";
	
	/**
	 * SOA Tree type:App Node Sub Type
	 */
	
	public static final String TREE_APP_APP = "0";
	
	public static final String CAT_BINDING_QUERY = "query";
	public static final String CAT_BINDING_SECURITY = "security";
	public static final String CAT_BINDING_STATISTICS = "statistics";
	public static final String CAT_BINDING_MONITOR = "monitor";
	
	public static final String BUS_BINDING_HTTP = "http";
	public static final String BUS_BINDING_SOAP = "soap";
	public static final String BUS_BINDING_JMS = "jms";
	public static final String BUS_BINDING_SYNC = "sync";
	public static final String BUS_BINDING_MONITOR = "monitor";
	public static final String BUS_BINDING_RETRY = "retry";
	
	
	public static final String BINDING_JMS = "1";
	public static final String BINDING_SOAP = "2";
	public static final String BINDING_HTTP = "3";
	public static final String BINDING_WEB_SERVICES = "4";
	
	public static final String JMS_TYPE_QUEUE = "1";
	public static final String JMS_TYPE_TOPIC = "2";
	
	public static final String SERVICE_STATUS_UNPUBLISHED = "0";
	public static final String SERVICE_STATUS_PUBLISHED = "1";
	
	public static final String QOS_YES = "1";
	public static final String QOS_NO = "2";
	public static final String QOS_DEFAULT = "3";
	
	
	public static final String QOS_LOG = "log";
	public static final String QOS_ACL = "acl";
	public static final String QOS_RETRY = "retry";
	public static final String QOS_COMM_TYPE = "communicateType";
	public static final String QOS_TIMEOUT = "timeout";
	public static final String QOS_WARN = "warn";
	public static final String QOS_WARN_ERROR = "warnError";
	public static final String QOS_WARN_RESPONSE_TIME = "warnResponseTime";
	
	public static final String SYNC = "1";
	public static final String ASYNC = "2";
	public static final String ASYNC_WITH_REPLY = "3";
	
	
	//resource type
	public static final String RESOURCE_LOCAL_SERVICE = "01";
	
	public static final String RESOURCE_REMOTE_SERVICE = "02";
	
	
	//Security
	/**
	 * type access is used for accessing service
	 */
	public static final String TYPE_ACCESS = "1";
	
	/**
	 * type admin is used for admin purpose
	 */
	public static final String TYPE_ADMIN = "2";
	
	//config type
	public static final String CONFIG_TYPE_ADMIN = "1";
	public static final String CONFIG_TYPE_SECURITY_PROVIDER = "2";
	
	
	
	//config
	public static final String CONFIG_ADMIN_USER = "admin.user";
	
	public static final String CONFIG_ADMIN_PASSWORD = "admin.password";
	
	public static final String CONFIG_RBAC_PROVIDER = "security.rbac.provider.class";
	
	public static final String CONFIG_ACCESS_PROVIDER = "security.access.provider.class";
	

}
